<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>产房建卡管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<shiro:hasPermission name="born:childBaseinfoTemp:edit"><li><a href="${ctx}/born/childBaseinfoTemp/referralForm">产房建卡新增</a></li></shiro:hasPermission>
		<li class="active"><a href="${ctx}/born/childBaseinfoTemp/">建卡列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="childBaseinfoTemp" action="${ctx}/born/childBaseinfoTemp/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>临时编码：</label>
				<form:input path="childcode" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li><label>儿童姓名：</label>
				<form:input path="childname" htmlEscape="false" maxlength="26" class="input-medium"/>
			</li>
			<%-- <li><label>性别：</label>
				<form:input path="gender" htmlEscape="false" maxlength="1" class="input-medium"/>
			</li> --%>
			<li><label>出生日期：</label>
				<input name="beginBirthday" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${childBaseinfoTemp.beginBirthday}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> - 
				<input name="endBirthday" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${childBaseinfoTemp.endBirthday}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li>
			<li class="clearfix">
			<li><label>母亲姓名：</label>
				<form:input path="guardianname" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li><label>母亲手机号：</label>
				<form:input path="guardianmobile" htmlEscape="false" maxlength="20" class="input-medium"/>
			</li>
			<li><label>母亲身份证：</label>
				<form:input path="guardianidentificationnumber" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>临时儿童编码</th>
				<th>儿童姓名</th>
				<th>性别</th>
				<th>出生日期</th>
<!-- 				<th>出生医院编码</th> -->
				<th>出生体重 kg</th>
				<th>母亲姓名</th>
				<th>创建日期</th>
				<th>母亲手机号</th>
				<th>母亲身份证号</th>
<!-- 				<th>区域划分</th> -->
				<th>备注</th>
<!-- 				<th>创建单位</th> -->
				<shiro:hasPermission name="born:childBaseinfoTemp:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="childBaseinfoTemp">
			<tr>
				<td><%-- <a href="${ctx}/born/childBaseinfoTemp/editform?id=${childBaseinfoTemp.id}"> --%>
					${childBaseinfoTemp.childcode}
				<!-- </a> --></td>
				<td>
					${childBaseinfoTemp.childname}
				</td>
				<td>
					${fns:getDictLabel(childBaseinfoTemp.gender, 'sex', '') }
				</td>
				<td>
					<fmt:formatDate value="${childBaseinfoTemp.birthday}" pattern="yyyy-MM-dd"/>
				</td>
				<%-- <td>
					${childBaseinfoTemp.birthhostipal}
				</td> --%>
				<td>
					${childBaseinfoTemp.birthweight}
				</td>
				<td>
					${childBaseinfoTemp.guardianname}
				</td>
				<td>
					<fmt:formatDate value="${childBaseinfoTemp.createDate}" pattern="yyyy-MM-dd HH:mm"/>
				</td>
				<td>
					${childBaseinfoTemp.guardianmobile}
				</td>
				<td>
					${childBaseinfoTemp.guardianidentificationnumber}
				</td>
<%-- 				<td>
					${childBaseinfoTemp.area}
				</td> --%>
				<td>
					${childBaseinfoTemp.remarks}
				</td>
				<%-- <td>
					${childBaseinfoTemp.createoffice}
				</td> --%>
				<shiro:hasPermission name="born:childBaseinfoTemp:edit"><td>
<%--     				<a href="${ctx}/born/childBaseinfoTemp/form?id=${childBaseinfoTemp.id}">修改</a> --%>
					<a href="${ctx}/born/childBaseinfoTemp/delete?id=${childBaseinfoTemp.id}" onclick="return confirmx('确认要删除该产房建卡吗？', this.href)">删除</a>
    				<a target="_blank" href="${ctx}/born/childBaseinfoTemp/printReferralSheet?id=${childBaseinfoTemp.id}">打印转诊单</a>
					
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>